Skip to content

docs: streamline CSR and graph algorithms guides, fix links and prose - #220

Merged
prrao87 merged 2 commits into
mainfrom
docs/phase-2-csr-algorithms-and-prose
Nov 27, 2026
Merged

prrao87 merged 2 commits into
mainfrom
docs/phase-2-csr-algorithms-and-prose

Conversation

@prrao87

@prrao87 prrao87 commented Nov 27, 2026

Copy link
Copy Markdown
Member

Summary

Phase 2 of improving docs readability and practitioner clarity:

  • De-bloated docs/csr.md (5,485 → 3,340 words): Promoted When it helps and the decision table up front, moved leaked planner/threshold internals to links into docs/internals/, and kept all 10 runnable snippets and anchors intact.
  • Streamlined docs/graph-algorithms.md (3,466 → 2,263 words): Added a closed-loop workflow diagram (Lance → export_graph/export_subgraph → icebug/SciPy/GPU renderers → write_node_column → Cypher), collapsed the 80-line icebug 13.6 weight-compatibility matrix into a ??? note, and cross-linked GPU graph rendering in docs/typescript.md.
  • Removed all remaining github.io links (docs/typescript.md LanceDB link → https://lancedb.com/docs/, docs/graph-algorithms.md NetworKit link → https://github.com/networkit/networkit).
  • Fixed garden-path / colliding-verb sentences across the docs (e.g. "knows fails", "deletes fails", "reads runs", "lacks reads", "fetches shadow", "supports works", "follows has").

Problem and why it matters

  • docs/csr.md buried its practical "Should I turn it on?" guidance at line 581 of 594 while repeating planner eligibility rules and adaptive Lance read thresholds already documented in docs/internals/.
  • docs/graph-algorithms.md buried its core practitioner loop (export → algorithm → write scores back to Lance without rebuilding CSR) under ~80 lines of third-party icebug 13.6 caveats.
  • Two remaining github.io links (lancedb.github.io/lancedb/ and networkit.github.io) were still present in the docs.
  • Several terse, reduced-relative-clause sentences across the site ("than the built-in Lance knows fails", "a version cleanup deletes fails", "whose variable the query never reads runs") forced human readers to re-read to parse them.

Change

  • docs/csr.md: Moved When it helps and the workload recommendation table directly after Turning it on. Slimmed the Memory cost callout to practical sizing guidance and linked to internals/indexes.md for source layouts and packed edge rows. Replaced repeated 30–40 line internal descriptions under Relationship variables, Grouping by a node, and Named paths and shortest paths with concise user-facing behavior plus links to internals/operators.md and internals/optimizer.md. Preserved all existing heading anchors and runnable snippets.
  • docs/graph-algorithms.md: Opened with a Mermaid flowchart illustrating the zero-copy export + write_node_column() closed loop. Tightened Edge weights and Subgraphs, collapsed the per-algorithm icebug 13.6 weight table and EdmondsKarp copy workaround into a ??? note, cross-linked docs/typescript.md#drawing-the-whole-graph, and replaced networkit.github.io with https://github.com/networkit/networkit.
  • No github.io links: Replaced https://lancedb.github.io/lancedb/ in docs/typescript.md with https://lancedb.com/docs/ (verified git grep -n "github\.io" returns zero matches across the repository).
  • Prose polish across docs/: Rewrote ~20 garden-path and colliding-verb sentences across docs/lance.md, docs/running-queries.md, docs/sql.md, docs/csr.md, docs/graph-algorithms.md, docs/contributing.md, and docs/internals/{index,indexes,operators,optimizer}.md.

Validation

Documentation-only changes; no engine code or benchmarks changed.

  • uv run --project docs --locked zensical build --strict — passed (No issues found)
  • cd python && uv run --no-sync python ../docs/check_snippets.py — passed (all runnable blocks across every page, including 10 blocks in csr.md and 11 blocks in graph-algorithms.md)
  • git grep -n "github\.io" — zero matches across tracked files
  • uvx typos@1.52.0 . — passed with zero issues

User impact

Documentation readability and broken-link fixes only. All existing anchors on csr.md and graph-algorithms.md remain intact. No API or runtime behaviour changed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying lance-csr with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b116b9
Status: ✅  Deploy successful!
Preview URL: https://a249cf1b.lance-csr.pages.dev
Branch Preview URL: https://docs-phase-2-csr-algorithms.lance-csr.pages.dev

View logs

@prrao87
prrao87 merged commit 49988d5 into main Nov 27, 2026
3 checks passed
@prrao87
prrao87 deleted the docs/phase-2-csr-algorithms-and-prose branch November 27, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant